package com.xhs.modular.common.controller;

import com.xhs.core.message.ReturnResult;
import com.xhs.modular.common.param.IdListParam;
import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @desc: 参数校验案例一
 * @projectName: spring-boot3-demo
 * @author: xhs
 * @date: 2025-06-10 周二 13:56
 */
@Slf4j
@RestController
public class CheckParamV1Controller {

    /**
     * 删除企业
     *
     * @param idListParam 入参
     * @return ReturnResult<Object>
     */
    @PostMapping("/delete/v1")
    public ReturnResult<String> delete(@Valid @RequestBody IdListParam idListParam) {
        log.info("<---------- 参数校验案例一:{} ---------->", idListParam);
        return ReturnResult.success("删除成功");
    }
}
